package com.heatup.apt.common.dao;

import com.baomidou.mybatisplus.mapper.AutoMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.heatup.apt.model.company.CompanyRecharge;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * CompanyRecharge 表数据库控制层接口
 */
@Component
public interface CompanyRechargeMapper extends AutoMapper<CompanyRecharge> {

    /**
     * 企业历史充值流水
     *
     * @param companyRechargePage 企业充值流水分页类
     * @param month 月份 1-12
     * @param companyId 企业ID
     * @return
     */
    List<CompanyRecharge> selectCompanyRechargeHistoryList(Page<CompanyRecharge> companyRechargePage, @Param("year")Integer year,  @Param("month") Integer month, @Param("companyId") Long companyId);
}